package edu.rmit.service.impl;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import edu.rmit.dao.ISystemInfoDAO;
import edu.rmit.dao.impl.SystemInfoDAOImpl;
import edu.rmit.domain.SystemInfo;
import edu.rmit.service.ISystemInfoService;

/**
 * This interface implement the system info operation. Link get the welcome information
 * and the operation instructions.
 * @author Joey George
 * @version 1.0
 */
@SuppressWarnings("serial")
public class SystemServiceImpl extends UnicastRemoteObject implements ISystemInfoService{
	
	/**
	 * This instance can be manipulated to implement the database opertion.
	 */
	private ISystemInfoDAO systemInfoDAO;
	
	/**
	 * The constructor to initialize a database operation instance.
	 * @throws RemoteException
	 */
	public SystemServiceImpl() throws RemoteException{
		systemInfoDAO = new SystemInfoDAOImpl();
	}
	
	/**
	 * This method implement to get a system information.
	 * @return The welcome information and the operation isntructions.
	 */
	@Override
	public SystemInfo getSystemInfo() throws RemoteException {
		return systemInfoDAO.getSystemInfo();
	}
	
	
}
